-- GENERATED SPELL FOR [Nethermine Flayer] --


function spell0_23169(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23169', 15000, 1)
end

function spell1_23169(pUnit, Event) --@Shred Armor,n/a--
pUnit:FullCastSpellOnTarget(40770,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23169', 8309, 1)
end

function Sorts_23169(pUnit, Event)
local choix_sorts_23169 = math.random(0, 1)
if choix_sorts_23169 == 0 then
pUnit:RegisterEvent('spell0_23169', 1, 1)
end
if choix_sorts_23169 == 1 then
pUnit:RegisterEvent('spell1_23169', 1, 1)
end
end

function mob23169_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23169', math.random(1500, 3000), 1)
end

function mob23169_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23169_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23169_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23169, 1, 'mob23169_Action')
RegisterUnitEvent(23169, 2, 'mob23169_Leave')
RegisterUnitEvent(23169, 3, 'mob23169_Kill')
RegisterUnitEvent(23169, 4, 'mob23169_Die')
